<script setup lang="ts">
import { getAdminUserAPI } from '@/api/user'
import type { UserItem, queryType } from '@/api/user/types'

//
const userList = ref<UserItem[]>([])
const getAdminUserData = async () => {
  // const params: queryType = { status: 1 }
  // const data = { test: 'abc' }
  const res = await getAdminUserAPI()
  // console.log(res)
  userList.value = res.data.records
}

onMounted(() => {
  getAdminUserData()
})
</script>

<template>
  <div>
    <div>用户管理</div>
    <div v-for="item in userList" :key="item.id">
      {{ item.name }}
    </div>
  </div>
</template>

<style lang="scss" scoped></style>
